//
//  ViewController.swift
//  picture查看器（上下手势）
//
//  Created by cvicseks-mac1 on 16/3/14.
//  Copyright © 2016年 cvicseks-mac1. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        var imageArray = Array<String>()
        imageArray.append("h1.jpg")
        imageArray.append("h2.jpg")
        imageArray.append("h3.jpg")
        imageArray.append("h4.jpg")
        let preview = PreView(frame: CGRectMake(0, UIScreen.mainScreen().bounds.size.height/2 - 90, UIScreen.mainScreen().bounds.size.width, 180), imageNameArray: imageArray)
        self.view.addSubview(preview)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

